﻿using Developer.Core.FrameWork.EventBus.Model;
using System.Threading.Tasks;

namespace Developer.Core.FrameWork.EventBus.Service
{
    /// <summary>
    /// 集成事件处理程序
    /// 泛型接口
    /// </summary>
    /// <typeparam name="TIntegrationEvent"></typeparam>
    public interface IEventHandler<in TIntegrationEvent> : IEventHandler
       where TIntegrationEvent : EventModel
    {
        //void Handle(TIntegrationEvent @event);

        Task Handle(TIntegrationEvent @event);
    }

    /// <summary>
    /// 集成事件处理程序
    /// 基 接口
    /// </summary>
    public interface IEventHandler
    {
    }
}
